package com.fg.estate.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 丰哥
 * 2022/09/07
 *
 * 管理员实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {

    private int id; //用户编号
    private String username; //用户名
    private String password; //密码
    private String salt; //盐
    private String header; //头像
    private Date createTime; //注册日期
    private boolean state; //状态，0=可用，1=禁用
    private int roleId; // 角色id

    //@DateTimeFormat(pattern = "yyyy-MM-dd")
    //@DateTimeFormat(pattern = "HH:mm")
    //@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm")
    //private Date birth;

}
